package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CwAdvertisingMapper;
import com.ruoyi.system.domain.CwAdvertising;
import com.ruoyi.system.service.ICwAdvertisingService;

/**
 * 广告费Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-29
 */
@Service
public class CwAdvertisingServiceImpl implements ICwAdvertisingService 
{
    @Autowired
    private CwAdvertisingMapper cwAdvertisingMapper;

    /**
     * 查询广告费
     * 
     * @param aid 广告费主键
     * @return 广告费
     */
    @Override
    public CwAdvertising selectCwAdvertisingByAid(Long aid)
    {
        return cwAdvertisingMapper.selectCwAdvertisingByAid(aid);
    }

    /**
     * 查询广告费列表
     * 
     * @param cwAdvertising 广告费
     * @return 广告费
     */
    @Override
    public List<CwAdvertising> selectCwAdvertisingList(CwAdvertising cwAdvertising)
    {
        return cwAdvertisingMapper.selectCwAdvertisingList(cwAdvertising);
    }

    /**
     * 新增广告费
     * 
     * @param cwAdvertising 广告费
     * @return 结果
     */
    @Override
    public int insertCwAdvertising(CwAdvertising cwAdvertising)
    {
        return cwAdvertisingMapper.insertCwAdvertising(cwAdvertising);
    }

    /**
     * 修改广告费
     * 
     * @param cwAdvertising 广告费
     * @return 结果
     */
    @Override
    public int updateCwAdvertising(CwAdvertising cwAdvertising)
    {
        return cwAdvertisingMapper.updateCwAdvertising(cwAdvertising);
    }

    /**
     * 批量删除广告费
     * 
     * @param aids 需要删除的广告费主键
     * @return 结果
     */
    @Override
    public int deleteCwAdvertisingByAids(Long[] aids)
    {
        return cwAdvertisingMapper.deleteCwAdvertisingByAids(aids);
    }

    /**
     * 删除广告费信息
     * 
     * @param aid 广告费主键
     * @return 结果
     */
    @Override
    public int deleteCwAdvertisingByAid(Long aid)
    {
        return cwAdvertisingMapper.deleteCwAdvertisingByAid(aid);
    }
}
